HilbertCurve
HilbertCurve[n] gives the line segments representing the nth-step Hilbert curve.
HilbertCurve[n,d] gives the nth-step Hilbert curve in dimension d.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.